package com.ftg.learn.springboot.introduce.controller;

import com.ftg.learn.springboot.introduce.mapper.IntroduceMapper;
import com.ftg.learn.springboot.introduce.pojo.introduce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("intro")
public class IntroduceController {

	@Autowired
	IntroduceMapper im;

	@GetMapping("/showall")
	public List<introduce> showall(){

		return im.showall();
	}

}
